#pragma once

#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>
typedef int HeapNodeDataType;
typedef struct Heap
{
	HeapNodeDataType* _a;
	int _size;
	int _capacity;
}Heap;

void AdjustUp(HeapNodeDataType* array, int n);
void AdjustDown(HeapNodeDataType* array, int n, int size);
void HeapInit(Heap* php);
void HeapDestory(Heap* php);
void HeapPush(Heap* php, HeapNodeDataType data);
void HeapPop(Heap* php);
HeapNodeDataType HeapTop(Heap* php);
int HeapSize(Heap* php);
void Swap(HeapNodeDataType* a, HeapNodeDataType* b);
bool HeapEmpty(Heap* php);
